package com.yuyou.hxyy.service.api.vo.req;

import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModelProperty;

import org.hibernate.validator.constraints.NotBlank;


/**
 * @author 
 */
public class ReqLogin{
	
 
	@NotBlank(message="phone不能为空")
	@ApiModelProperty(value = "账号", required = true)
	private String phone;
	
	@NotBlank(message="password不能为空")
	@ApiModelProperty(value = "密码", required = true)
	private String password;
	
	@NotNull(message="userType不能为空")
	@ApiModelProperty(value = "用户类型，0：学生，1：管理员", required = true)
	private Integer userType;
	
	@ApiModelProperty(value = "验证码", required = false)
	private String captcha;
	
	@ApiModelProperty(value = "图形验证码token", required = false)
	private String token;

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getCaptcha() {
		return captcha;
	}

	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public ReqLogin() {

	}

	public Integer getUserType() {
		return userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public ReqLogin(String phone, String password, Integer userType,
			String captcha, String token) {
		super();
		this.phone = phone;
		this.password = password;
		this.userType = userType;
		this.captcha = captcha;
		this.token = token;
	}
	

	

    
    
 
}